package com.SmartLED.Common;

import org.apache.log4j.Logger;
import sun.reflect.Reflection;

/**
 * Created by Frozen on 2017/1/6.
 */
public class Log4JUtils {

    private static Logger logger = null;

    public static Logger getLogger()
    {
        if (null == logger)
        {
            logger = Logger.getLogger(Reflection.getCallerClass().getName());
        }
        return logger;
    }
}
